home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / pov3demo / showoff / pov / sunset3 < prev    next >
Text File  |  1995-11-16  |  2KB  |  94 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dan Farmer, 1995
  3.  
  4. #include "colors.inc"
  5. #include "textures.inc"
  6. #include "skies.inc"
  7. #include "metals.inc"
  8.  
  9. camera {
  10.     location <0,  0.075, -0.45>
  11.     up y
  12.     right  <4/3, 0, 0>
  13.     direction z
  14.     look_at <0, 0.075, 0>
  15. }
  16.  
  17. // Dark cloudy sky
  18. sky_sphere {
  19.     pigment {
  20.         wrinkles
  21.         turbulence 0.3
  22.         omega 0.707
  23.         octaves 5
  24.         color_map {
  25.             [0.0 color DustyRose * 2.5]
  26. //            [0.2 color DustyRose ]
  27.             [0.2 color Orange ]
  28. //            [0.8 color DarkSlateGray * 0.5]
  29.             [0.8 color SlateBlue * 0.25]
  30.             [1.0 color SkyBlue]
  31.         }
  32.         scale <0.5, 0.1, 1000>
  33.     }
  34. }
  35.  
  36. // The Sun's halo
  37. #declare SunGlow =
  38. texture {
  39.    pigment { colour Clear }
  40.    halo {
  41.       linear
  42.       max_value 1.0
  43.       spherical_mapping
  44.       emitting
  45.       colour_map {
  46.          [0.15 color rgbf <1.0, 0.0, 0.0,  0.0> ]
  47.          [0.75 color rgbf <1.0, 1.0, 0.0,  1.0> ]
  48.       }
  49.       samples 10
  50.    }
  51. }
  52.  
  53. #declare Sun =
  54. union {
  55.     sphere { 0, 1
  56.         hollow
  57.         no_shadow
  58.         texture { SunGlow }
  59.         scale 0.75
  60.         scale <3, 3, 3>
  61.         translate <0, 0.05, 0>
  62.     }
  63.     sphere { 0, 0.1
  64.         no_shadow
  65.         hollow
  66.         pigment { Orange filter 0.5}
  67.         finish { ambient 0.75 }
  68.     }
  69.     scale <1, 0.8, 1>
  70.     translate <2.5, -0.25, 15>
  71. }
  72.  
  73. light_source { <3000, 1000, -2000>  rgb <1, .95, .85> * 0.5 }
  74. light_source { <0, 0.1, 4> DustyRose shadowless }
  75. light_source { <0, 0.075, 4> Orange shadowless }
  76.  
  77. default { finish { diffuse 1 ambient 0.1 } }
  78.  
  79. #declare Sea =
  80. plane { y, 0.045
  81.     texture {
  82.         T_Silver_1C
  83.         normal {
  84.             average
  85.             normal_map {
  86.                 [ ripples 0.15 frequency 3 scale 0.008 translate <0, 0, 10> ]
  87.                 [ wrinkles 0.25 scale 0.01  ]
  88.             }
  89.         }
  90.     }
  91. }
  92. object { Sun }
  93. object { Sea }
  94.